#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int t;
	scanf("%d", &t);
	for (int i = 1; i <= t; i++)
	{
		for (int j = 1; j <= i; j++)
			printf("%dX%d ", j, i);
		printf("\n");
	}
}
